package org.jeecg.modules.demo.yyc.reportdaily.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.poi.ss.usermodel.Workbook;
import org.jeecg.modules.demo.yyc.reportdaily.entity.PlatformDaily;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.demo.yyc.reportdaily.entity.Report;
import org.springframework.web.multipart.MultipartFile;

import java.util.HashMap;
import java.util.List;

/**
 * @Description: 运营日报
 * @Author: jeecg-boot
 * @Date:   2022-11-01
 * @Version: V1.0
 */
public interface IPlatformDailyService extends IService<PlatformDaily> {

    void saveEntireDaily(List<PlatformDaily> platformDailies);

    /**
     * 查询日报
     * @return
     */
    Report getReports(IPage<HashMap<String,?>> page, String platformId);

    void importExcel(MultipartFile file);

    Workbook getTemplate(String platformId);

    /**
     * 为每个日报组创建组id
     * @return
     */
    String getDailyGroupId();

}
